<style type="text/css">
    .product-topic{
        margin-bottom:10px;
        border:1px solid #EEE;
        <?php if ($topics) { ?>
        padding:10px 10px 10px 40px;
        background:url('catalog/view/theme/default/image/general/forum_topic.gif') no-repeat 5px center;
        <?php }else{ ?>
        padding:10px;
        <?php } ?>
    }
    .product-topic a{
        text-decoration:none;
    }
    .product-topic a:hover{
        text-decoration:underline;
    }
    .product-topic span{
        margin:0 5px;
    }
</style>
<?php if ($topics) { ?>
<?php foreach ($topics as $topic) { ?>
<div class="product-topic">
    <a href="<?php echo $topic['topic_link']; ?>" target="_blank"><?php echo $topic['topic_title']; ?></a><br />
   <?php echo $text_by; ?>&nbsp;<a href="<?php echo $topic['topic_poster_link']; ?>" target="_blank"><?php echo $topic['topic_poster_name']; ?></a>&nbsp;&raquo;&nbsp;<?php echo $topic['topic_time']; ?><span>&ndash;</span>
    <?php echo $text_replies; ?>&nbsp;<strong><?php echo $topic['topic_replies']; ?></strong><span>&ndash;</span>
    <?php echo $text_views; ?>&nbsp;<strong><?php echo $topic['topic_views']; ?></strong>
</div>
<?php } ?>
<div class="pagination"><?php echo $pagination; ?></div>
<?php } else { ?>
<div class="product-topic"><?php echo $text_no_post; ?></div>
<?php } ?>
